#!/usr/bin/env python

import ctypes
from ctypes import  c_long

SPI_GETWORKAREA = 48

class RECT(ctypes.Structure):
    _fields_ = [("left", c_long), ("top", c_long), ("right", c_long), ("bottom", c_long)]

r = RECT(0,0,0,0)


result = ctypes.windll.user32.SystemParametersInfoA(SPI_GETWORKAREA, 0, ctypes.byref(r), 0)



print 'result =', result
print r.left, r.top, r.right, r.bottom
